/**
 * Created by 李伟伟 on 2019/10/20.
 */

import req from './index';

const BASE_URL = '/api';


/**
 * 项目管理
 */

//获取所有试题种类
export const getAllSubject = (param)=>{return req(param,`${BASE_URL}/subjectController/getAllSubject`,"post")};

//添加学历级别
export const addLevel = (param)=>{return req(param,`${BASE_URL}/subjectController/addLevel`,"post")};

//删除学历级别
export const deleteLevel = (param)=>{return req(param,`${BASE_URL}/subjectController/deleteLevel`,"post")};

//添加年级级别
export const addGrade = (param)=>{return req(param,`${BASE_URL}/subjectController/addGrade`,"post")};

//删除年级级别
export const deleteGrade = (param)=>{return req(param,`${BASE_URL}/subjectController/deleteGrade`,"post")};

//添加课目
export const addSubject = (param)=>{return req(param,`${BASE_URL}/subjectController/addSubject`,"post")};

//删除课目
export const deleteSubject = (param) => {return req(param,`${BASE_URL}/subjectController/deleteSubject`,"post")};

//获取所有学历
export const findAllLevel = (param) => {return req(param,`${BASE_URL}/subjectController/findAllLevel`,"post")};

//查询指定学历下面的所有年级
export const findAllGrade = (param) => {return req(param,`${BASE_URL}/subjectController/findAllGrade`,"post")};

//查询指定年级下面的所有科目
export const findAllSubject = (param)=>{return req(param,`${BASE_URL}/subjectController/findAllSubject`,"post")};

//编辑学历
export const editLevel = (param) => {return req(param,`${BASE_URL}/subjectController/editLevel`,"post")};

//编辑年级
export const editGrade = (param) => {return req(param,`${BASE_URL}/subjectController/editGrade`,"post")};

//编辑课目
export const editSubject = (param) => {return req(param,`${BASE_URL}/subjectController/editSubject`,"post")};


/**
 * 选择题
 */

//添加选择题
export const addChoose = (param) => {return req(param,`${BASE_URL}/chooseController/addChoose`,"post")};

//删除指定的选择题
export const deleteChoose = (param) =>{return req(param,`${BASE_URL}/chooseController/deleteChoose`,"post")};

//修改指定的选择题
export const updateChoose = (param) => {return req(param,`${BASE_URL}/chooseController/updateChoose`,"post")};

//按照条件查询指定的选择题
export const findChoose = (param) => {return req(param,`${BASE_URL}/chooseController/findChoose`,"post")};


/**
 * 判断题
 */

//添加判断题
export const addJudgment = (param)=>{return req(param,`${BASE_URL}/judgmentController/addJudgment`,"post")};

//删除判断题
export const deleteJudgment = (param) => {return req(param,`${BASE_URL}/judgmentController/deleteJudgment`,"post")};

//修改判断题
export const updateJudgment = (param)=>{return req(param,`${BASE_URL}/judgmentController/updateJudgment`,"post")};

//根据条件查询判断题
export const findJudgment = (param)=>{return req(param,`${BASE_URL}/judgmentController/findJudgment`,"post")};

/**
 * 简答题
 */
//添加简答题
export const addShortAnswer = (param)=>{return req(param,`${BASE_URL}/shortAnswerController/addShortAnswer`,"post")};

//删除简答题
export const deleteShortAnswer = (param)=>{return req(param,`${BASE_URL}/shortAnswerController/deleteShortAnswer`,"post")};

//修改简答题
export const updateShortAnswer = (param)=>{return req(param,`${BASE_URL}/shortAnswerController/updateShortAnswer`,"post")};

//条件查询对应的简答题
export const findShortAnswer = (param) => {return req(param,`${BASE_URL}/shortAnswerController/findShortAnswer`,"post")};

/**
 * 填空题
 */
//添加填空题
export const addFill = (param) => {return req(param,`${BASE_URL}/fillController/addFill`,"post")};

//删除填空题
export const deleteFill = (param) => {return req(param,`${BASE_URL}/fillController/deleteFill`,"post")};

//修改填空题
export const updateFill = (param) => {return req(param,`${BASE_URL}/fillController/updateFill`,"post")};

//条件查询填空题
export const findFill = (param) => {return req(param,`${BASE_URL}/fillController/findFill`,"post")};



